<?php
/**
 * Created by PhpStorm.
 * User: happy
 * Date: 19/4/15
 * Time: 下午9:48
 */
//默认不显示,仅仅做为demo显示
//echo 'this is swoole control app ';
// swoole 解析并设置好BASE_PATH后加载此文件


//swoole
//判断是否为异步请求
define('IS_AJAX',$_SERVER["HTTP_X_REQUESTED_WITH"]=='XMLHttpRequest');
$plugin_config=plugin('core/config');
$plugin_base=plugin('core/base');

$plugin_config->init();
$plugin_config->config_db();
$plugin_base->init_timezone();
//$plugin_config->init_redis();
//执行完成后 swoole执行run act=>op的操作

//ini_set('swoole.display_errors', 'On');